package req

type GoodCreate struct {
	GoodName    string  `form:"GoodName" json:"GoodName" xml:"GoodName"  binding:"required"`
	GoodClass   int     `form:"GoodClass" json:"GoodClass" xml:"GoodClass"  binding:"required"`
	Price       float32 `form:"Price" json:"v" xml:"Price"  binding:"required"`
	Stock       int     `form:"Stock" json:"Stock" xml:"Stock"  binding:"required"`
	Description string  `form:"Description" json:"Description" xml:"Description"  binding:"required"`
	ImageURL    string  `form:"ImageURL" json:"ImageURL" xml:"ImageURL"  binding:"required"`
	Status      int     `form:"Status" json:"Status" xml:"Status"  binding:"required"`
}
type GoodUpdate struct {
	Id          int64   `form:"Id" json:"Id" xml:"Id"  binding:"required"`
	GoodName    string  `form:"GoodName" json:"GoodName" xml:"GoodName"  binding:"required"`
	GoodClass   int     `form:"GoodClass" json:"GoodClass" xml:"GoodClass"  binding:"required"`
	Price       float32 `form:"Price" json:"v" xml:"Price"  binding:"required"`
	Stock       int     `form:"Stock" json:"Stock" xml:"Stock"  binding:"required"`
	Description string  `form:"Description" json:"Description" xml:"Description"  binding:"required"`
	ImageURL    string  `form:"ImageURL" json:"ImageURL" xml:"ImageURL"  binding:"required"`
	Status      int     `form:"Status" json:"Status" xml:"Status"  binding:"required"`
}
